import 'package:flutter/material.dart';
import 'package:meiyunapp/common/font_style.dart';
import 'package:meiyunapp/widget/app_image_widget.dart';

class OrderItemWidget extends StatelessWidget {
  const OrderItemWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Card(
      margin: const EdgeInsets.symmetric(horizontal: 11, vertical: 5),
      child: Column(
        children: [
          Padding(
            padding: const EdgeInsets.symmetric(horizontal: 10),
            child: SizedBox(
              height: 30,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: const [
                  Text("测试商户"),
                  Text("已取消"),
                ],
              ),
            ),
          ),
          Container(
            padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
            child: Row(
              children: [
                AppImageWidget(
                  url:
                      "http://file-cdn.zulingwang.cn/zlb-user/userhead/2021/06/15/1623723766828.png?x-oss-process=style/default",
                  width: 119,
                  height: 75,
                ),
                const SizedBox(
                  width: 5,
                ),
                Flexible(
                  child: SizedBox(
                    height: 75,
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      crossAxisAlignment: CrossAxisAlignment.stretch,
                      children: [
                        Column(
                          crossAxisAlignment: CrossAxisAlignment.stretch,
                          children: const [
                            Text(
                              "测试项目测试项目",
                              style: AppFontStyles.style_black_15_2,
                            ),
                            SizedBox(
                              height: 5,
                            ),
                            Text("下单时间：2021-23-23"),
                          ],
                        ),
                        const Text("总价：999"),
                      ],
                    ),
                  ),
                )
              ],
            ),
          ),
        ],
      ),
    );
  }
}
